from django.shortcuts import render
from rest_framework import  viewsets
from rest_framework.response import Response
from .serializers import *
from .models import *
# Create your views here.
class StudentViewSet(viewsets.ViewSet):
    def list(self,request):
        students = Student.objects.all()
        serializers = StudentSerializers(students,many=True)
        return  Response(serializers.data)